Css

Reset all styles-CSS examples

Reset all styles-CSS examples, someone asked me to explain?
Css

Use an attribute to reset all styles to their default values. This does not affect the direction and unicode-bidiattributes.

HTML CODE:

<div class="reset-all-styles">
    <h4>Title</h4>
    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure id exercitationem nulla qui repellat laborum vitae, molestias tempora velit natus. Quas, assumenda nisi. Quisquam enim qui iure, consequatur velit sit?</p>
</div>

CSS CODE:

.reset-all-styles {
  all: initial;
}

 

Reset all styles

Description

This all property allows you to reset all styles (inherited or not inherited) to their default values.

Post your comments / questions